home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / animutil / kfast / kfast.lzh / KFAST / src / skeleton.h < prev   
C/C++ Source or Header  |  1992-07-03  |  1KB  |  68 lines

  1. #include <stdio.h>
  2. #include <stdarg.h>
  3. #include <stddef.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6.  
  7. #include <exec/types.h>
  8.  
  9. #define ScrnWidth 640
  10. #define ScrnHeight 200
  11. #define ScrnFlags HIRES
  12.  
  13. #define POINTS 10
  14.  
  15. #define malloc mymalloc
  16. #define free myfree
  17. #define realloc myrealloc
  18.  
  19. struct pts
  20.     {
  21.     short p[1][2];
  22.     };
  23.  
  24. struct line
  25.     {
  26.     short box[2][2];
  27.     struct line *next;
  28.     short linec,fillc;/* negative fill color means transparent */
  29.     struct pts *pts;
  30.     short number;
  31.     };
  32.  
  33. struct object
  34.     {
  35.     short offset[2];
  36.     struct line *image,*skeleton,*outline;
  37.     struct object *frameup,*framedown,*next,*prev;
  38.     short entry,ilaw;
  39.     };
  40.  
  41. typedef struct line * line_ptr;
  42. typedef struct object * obj_ptr;
  43.  
  44. /* entry flags */
  45. #define IMAGE 1
  46. #define SKELETON 2
  47. #define XOUTLINE 4
  48. /* additional displaymode flags */
  49. #define ENTRY 0
  50. #define ALL IMAGE|SKELETON|XOUTLINE
  51. /* additional drawmode flags */
  52. #define FILL 8
  53.  
  54. /* ilaw flags */
  55. #define XACCEL 1
  56. #define YACCEL 2
  57. #define XDECEL 4
  58. #define YDECEL 8
  59.  
  60. /* displayflags */
  61. #define DISPIMAGE 0
  62. #define DISPALL 1
  63. #define DISPENTRY 2
  64.  
  65.  
  66. #include "funcs.h"
  67. #include "globals.h"
  68.